Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 1 - Appearance Manager Reference / Appearance Manager Functions
Drawing Appearance-Compliant Menus /


DrawThemeMenuBackground

NEW WITH THE APPEARANCE MANAGER

Draws an Appearance-compliant menu background.

pascal OSStatus DrawThemeMenuBackground (
                     const Rect *inMenuRect,
                     ThemeMenuType inMenuType);
inMenuRect
On input, a pointer to a rectangle, which should contain the entire menu.
inMenuType
A value specifying the type of menu (pull-down, pop-up, or hierarchical) for which a background is being drawn; see "Appearance-Compliant Menu Type Constants".
function result
A result code; see "Result Codes".
DISCUSSION
The DrawThemeMenuBackground function draws a menu background in the rectangle specified; it should be called when you are writing a custom menu bar definition function and wish to coordinate with the current theme.

SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before calling the DrawThemeMenuBackground function. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998